home *** CD-ROM | disk | FTP | other *** search
/ The Best of MacTutor - S…e Code for Volumes 1 to 5 / The Best of MacTutor - Source Code for Volume 1-5 (Wayzata Technology)(6031)(1990).bin / Source Code / #51 (Dec 89) / LISP sources / listing 06 < prev    next >
Text File  |  1988-10-23  |  651b  |  34 lines

  1. Welcome to Allegro CL Version 1.2!
  2. TOWEROFHANOI
  3. NIL
  4. EXIST
  5. HANOI
  6. MOVEDISK
  7. MOVETOWER
  8. ADDFIRST
  9. GETANDREMOVEFIRST
  10. > Continuable Error: Attempt to globally define object function HANOI
  11. > While executing: FSET-GLOBALLY
  12. > If Continued: Bind HANOI in the root object
  13. > Type Command-/ to continue, Command-. to abort.
  14. 1 > Continuing...
  15. HANOI
  16. > Continuable Error: Attempt to globally define object function MOVEDI
  17. SK
  18. > While executing: FSET-GLOBALLY
  19. > If Continued: Bind MOVEDISK in the root object
  20. > Type Command-/ to continue, Command-. to abort.
  21. 1 > Continuing...
  22. MOVEDISK
  23. ? (Hanoi 3 "A" "B" "C")
  24. A -> B
  25. A -> C
  26. B -> C
  27. A -> B
  28. C -> A
  29. C -> B
  30. A -> B
  31. NIL